using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian56
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class dlq_400IN : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        private float x, y;
        public dlq_400IN()
        {
            InitializeComponent();
            this.NeedPoint = true;
        }
        private void dlq_400IN_Load(object sender, EventArgs e)
        {
            this.dlq_400IN_Resize(sender, e);
        }

        private void dlq_400IN_Paint(object sender, PaintEventArgs e)
        {
            SolidBrush b1;
            Pen a = new Pen(Color.Turquoise, 1);
            e.Graphics.DrawArc(a, this.x * 0.5f, this.y * 0.2f, this.x, this.y * 0.2f, 180f, 180f);
            e.Graphics.DrawArc(a, this.x * 0.5f, this.y * 1.6f, this.x, this.y * 0.2f, -180f, -180f);
            e.Graphics.DrawLine(a, this.x, 0f, this.x, this.y * 0.2f);
            e.Graphics.DrawLine(a, this.x, this.y * 1.8f, this.x, this.y * 2f);
            if (false)
            {
                b1 = new SolidBrush(Color.FromArgb(0xff, 0xff, 0, 0));
                e.Graphics.DrawLine(a, this.x, this.y * 0.4f, this.x, this.y * 1.6f);
                e.Graphics.FillRectangle(b1, (float)(this.x * 0.82f), (float)(this.y * 0.3f), (float)(this.x * 0.36f), (float)(this.y * 0.2f));
                e.Graphics.FillRectangle(b1, (float)(this.x * 0.82f), (float)(this.y * 1.5f), (float)(this.x * 0.36f), (float)(this.y * 0.2f));
            }
            else
            {
                b1 = new SolidBrush(Color.FromArgb(0xff, 0, 0xff, 0));
                e.Graphics.DrawLine(a, this.x, this.y * 1.5f, this.x, this.y * 1.1f);
                e.Graphics.DrawLine(a, this.x, this.y * 0.5f, this.x, this.y * 0.85f);
                e.Graphics.DrawLine(a, this.x * 0.6f, this.y * 0.85f, this.x, this.y * 1.1f);
                Pen b = new Pen(Color.FromArgb(0xff, 0, 0xff, 0), 2f);
                e.Graphics.DrawLine(b, (float)(this.x * 0.85f), (float)(this.y * 0.8f), (float)(this.x * 1.15f), (float)(this.y * 0.9f));
                e.Graphics.DrawLine(b, (float)(this.x * 0.85f), (float)(this.y * 0.9f), (float)(this.x * 1.15f), (float)(this.y * 0.8f));
                e.Graphics.FillRectangle(b1, (float)(this.x * 0.82f), (float)(this.y * 0.3f), (float)(this.x * 0.36f), (float)(this.y * 0.2f));
                e.Graphics.FillRectangle(b1, (float)(this.x * 0.82f), (float)(this.y * 1.5f), (float)(this.x * 0.36f), (float)(this.y * 0.2f));
            }
        }

        private void dlq_400IN_Resize(object sender, EventArgs e)
        {
            this.x = base.Width / 2;
            this.y = base.Height / 2;
            //this.Refresh();
        }
    }
}